﻿@model ITProject.WebUI.Models.ProjectAdmin.ProjectAdminAddNewFunctionalRequirement
@{
    ViewBag.Title = "Tworzenie wymagania funkcjonalnego";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Panel administracyjny projektu @Model.ProjectName</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<div class="Pmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = Model.ProjectName, Role = ITProject.Domain.UserRole.Supervisor })
</div>



<div class="PAmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectAdminMenu, new List<string> { "WF", Model.ProjectName.ToString() })
@*@Html.ActionLink("Zarządzaj użytkownikami",MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model }, null)*@
</div>
<div class="PAplane">
@using (Html.BeginForm(MVC.ProjectAdmin.ActionNames.AddNewFunctionalRequirement, MVC.ProjectAdmin.Name, FormMethod.Post, new { enctype = "multipart/form-data" }))
{ 
    @Html.ValidationSummary(true);
    @Html.HiddenFor(model=>model.ProjectName)
     <fieldset>
        <legend>Dodanie nowego scenariusza</legend>
        <div class="editor">
            <div class="editor-label"></div>
        <div class="editor-field">
        <div class="validation">
               
        </div>
        </div>
    </div>

    <div class="editor">

        <div class="editor-label">
                Nazwa <span class="validation">*</span>

                
        </div>
        <div class="editor-field">
        <p class="validation">@Html.ValidationMessageFor(model => model.Name)</p>
        @Html.TextBoxFor(model=>model.Name,new { @class = "input" ,@style="width:300px"})
        
        </div>
    </div>
    <div class="editor">
        <div class="editor-label">
                Aktorzy
        </div>
        <div class="editor-field">
                @Html.TextBoxFor(model=>model.Actors, new { @class = "input", @style = "width:300px" })

        </div>
    </div>
    <div class="editor">
        <div class="editor-label">
                Priorytet
        </div>
        <div class="editor-field">
               @Html.DropDownListFor(model => model.ReturnPriority, Model.PriorityList.Priorities, new { @class = "input" })

        </div>
    </div>
    <hr />
    <div class="editor">
        <div class="editor-label">
               Opis
        </div>
        <div class="editor-field">
                @Html.TextAreaFor(model=>model.Description, new { @class = "input", @style = "width:300px" })

        </div>
    </div>

     <div class="editor">
        <div class="editor-label">
             Warunki początkowe
        </div>
        <div class="editor-field">
                @Html.TextAreaFor(model=>model.InitConditions, new { @class = "input", @style = "width:300px" })

        </div>
    </div>
     <div class="editor">
        <div class="editor-label">
               Warunki końcowe
        </div>
        <div class="editor-field">
                @Html.TextAreaFor(model=>model.FinalConditions, new { @class = "input", @style = "width:300px" })

        </div>
    </div>

<hr />    
<div id="scen">

<p class="editor-label"> Scenariusz główny:</p>


</div>
<div class="DSubmit">
<span id="AddNewScen" class="button">Dodaj nowy punkt</span><br />
</div>
<hr />
<div id="wyj" >
<p class="editor-label">Wyjątki i rozszerzenia</p>

</div>
<hr />
<p class="validation" style="padding:10px">* pole musi być podane</p>
        <div class="DSubmit">
        <p>
            <input type="submit" value="Dodaj" class="button"/>
        </p>
        </div>
    </fieldset>
}
</div>
<div class="clear">
</div>
